package com.pobox.tupletest;

import org.apache.log4j.Logger;

import java.util.ArrayList;

public class Dimension extends ArrayList<Item> {
    /**
     * Logger for this class
     */
    private static final Logger logger = Logger.getLogger(Dimension.class);

    private static final long serialVersionUID = 1L;

    public int getDimension() {
        if (0 == size()) {
            logger.debug("getDimension() - end - nothing in this dimension yet - sending back 0");
            return 0;
        }
        int returnint = this.get(0).getDimension();
        logger.debug("getDimension() - end - returnint= "+returnint);
        return returnint;
    }

    public Dimension() {
        super();
    }

    public int itemCount() {
        int returnint = size();
        return returnint;
    }

}
